#include "UnknownCommand.h"
#include <sstream>

namespace phnq
{
	namespace phnqlets
	{
		UnknownCommand::UnknownCommand(string cmdName)
		{
			this->cmdName = cmdName;
		}
		
		void UnknownCommand::execute(string path, map<string,string> params, processor_response *response)
		{
			string s("UNKNOWN COMMAND: "+cmdName);
			response->bodyStream = new istringstream(s);
			response->status = STATUS_NOT_FOUND;
		}
	}
}
